package com.shao.im.entity;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class Message<T> {

    private Integer action;
    private Integer from;
    private Integer to;
    // 1-文本消息 2-图片消息
    private Integer type;
    private T msg;
}
